package com.cloud.pole.admin.service;

import com.cloud.pole.admin.model.entity.User;
import com.cloud.pole.api.user.BaseUserApi;
import com.cloud.pole.common.util.jwt.JwtAuthenticationRequest;

public interface AuthService {
    String login(JwtAuthenticationRequest authenticationRequest) throws Exception;
    
    String refresh(String oldToken) throws Exception;
    
    boolean validate(String token) throws Exception;
    
    User getMyInfo(String token) throws Exception;
    
    void modifyMyInfo(String token, User user) throws Exception;
    
    void modifyMyPassWord(String token, String oldPwd, String newPwd) throws Exception;
    
    boolean checkUserName(String userName) throws Exception;
}
